package cn.com.yx.ms.persistence;

import cn.com.yx.ms.application.web.ApiQueryBase;
import cn.com.yx.ms.domain.dbmodel.ScCatalog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScCatalogMapper {
    int deleteByPrimaryKey(String guid);

    int insert(ScCatalog record);

    int insertSelective(ScCatalog record);

    ScCatalog selectByPrimaryKey(String guid);

    int updateByPrimaryKeySelective(ScCatalog record);

    int updateByPrimaryKey(ScCatalog record);

    String getMaxNumber(@Param("parentid") String parentid);

    List<ScCatalog> find(ApiQueryBase query);

    List<ScCatalog> findChild(@Param("parentid")String parentid);

    int selectCountByCatalogName(@Param("parentid") String parentid, @Param("catalogname") String catalogname);
}